package com.example.dameng.mapper;

import com.example.dameng.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.*;

@Mapper
public interface UserMapper {
    Integer userLogin(@Param("userCode") int userCode, @Param("userPasswd") String userPasswd);

    Integer adminLogin(@Param("adminCode")int adminCode,@Param("adminPasswd")String adminPasswd,@Param("adminType")int admineType);

    Double getConsumptionList(@Param("userCode")int userCode,@Param("month")String month);

    Double getConsumeNum(@Param("userCode")int userCode,@Param("month")String month);
    PersonalInfo getPersonalInfo(@Param("userCode") int userCode);


}
